home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / OOP_Course / Labs / Stack / Makefile next >
Makefile  |  1992-12-19  |  825b  |  48 lines

  1. # Makefile for Stack Demo
  2. #
  3. #
  4. # Name of the application. 
  5. #
  6. NAME = Stack
  7.  
  8. #
  9. # Source files for this application. 
  10. #
  11. MFILES = Stack.m stackMain.m
  12. HFILES = 
  13. CFILES = 
  14. NIBFILES =
  15. TIFFFILES = 
  16. PSWFILES = 
  17. SNDFILES = 
  18.  
  19. #
  20. # Libraries used by this application.
  21. #
  22. LIBS = -lNeXT_s -lsys_s
  23.  
  24. #
  25. # Flags to pass on to the compiler and linker.
  26. #
  27. CFLAGS = -g 
  28. LFLAGS = 
  29.  
  30. #
  31. # Rules.
  32. #
  33. SRCFILES = $(MFILES) $(HFILES) $(CFILES) $(NIBFILES) $(TIFFFILES) $(PSWFILES) 
  34. OBJFILES = $(MFILES:.m=.o) $(CFILES:.c=.o) $(PSWFILES:.psw=.o) 
  35. DERIVED = $(PSWFILES:.psw=.c) 
  36. GARBAGE = $(DERIVED) core errs 
  37.  
  38. $(NAME): $(OBJFILES) 
  39.     $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJFILES) $(LIBS) 
  40.  
  41. clean: 
  42.     -rm -f *.o $(NAME) $(DERIVED) $(GARBAGE) 
  43.  
  44. help: 
  45.     @echo '  make $(NAME) - to make the application'
  46.     @echo '  make clean -    to remove all files but the source'
  47.  
  48.